﻿using System;
using System.Collections.Generic;
using System.Text;
using SAServices.DAL;
using System.Data.SqlClient;
using System.Data;

namespace SAServices.BLL
{
    public class FamilyTableBLL
    {
        internal static bool AddFamilyTableInfo(Model.ConnectionConext connCtx, Model.FamilyTableInfo familyTableInfo)
        {
            return FamilyTableDAL.AddFamilyTableInfo(connCtx, familyTableInfo);
        }

        internal static bool UpdateFamilyTableInfo(Model.ConnectionConext connCtx, Model.FamilyTableInfo familyTableInfo)
        {
            return FamilyTableDAL.UpdateFamilyTableInfo(connCtx, familyTableInfo);
        }

        internal static bool DeleteFamilyTableInfo(Model.ConnectionConext connCtx, Guid familyId)
        {
            return FamilyTableDAL.DeleteFamilyTableInfo(connCtx, familyId);
        }

        internal static List<Guid> GetAllInstances(Model.ConnectionConext connCtx, Guid familyId)
        {
            return FamilyTableDAL.GetAllInstances(connCtx, familyId);
        }
    }
}
